package com.example.warehouse_manager.mapper;

import com.example.warehouse_manager.entity.RoleAuth;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.aop.target.LazyInitTargetSource;

import java.util.List;

/**
* @author Yang
* @description 针对表【role_auth(角色权限表)】的数据库操作Mapper
* @createDate 2024-03-18 20:25:00
* @Entity com.example.warehouse_manager.entity.RoleAuth
*/
@Mapper
public interface RoleAuthMapper {

    //根据角色id删除角色权限关系
    public int removeRoleAuthById(Integer roleId);

    //根据角色id查询角色分配的所有菜单权限id
    public List<Integer> findAuthIdsByRid(Integer roleId);

    //添加角色权限关系
    public int insertRoleAuth(RoleAuth roleAuth);

}




